import { get, post } from './Service';
// 用户登录
export const userLogin = (userAccountInfo) => {
  return post('/campusweb/ipuser/login', userAccountInfo);
};
// 用户登出
export const userLogout = () => {
  return post('/campusweb/ipuser/logout');
};
// 获取用户信息
export const getByUserId = () => {
  return post('/campusweb/user/getByUserId');
};

export const pageConditionQueryByCreatorId = (pageInfo) => {
  return post('/campusweb/activity/pageConditionQueryByCreatorId', pageInfo);
};
//根据id获取活动数据
export const queryByUpdate = (id) => {
  return post('/campusweb/activity/queryByUpdate', id);
};
// 添加活动页面-获取地点信息
export const queryAddressForFourLinkage = (addressLevel) => {
  return post('/campusweb/address/queryAddressForFourLinkage', addressLevel);
};
// 图片上传
export const pictureUpload = (addressLevel) => {
  return post('/campusweb/upload/pictureUpload', addressLevel);
};
//保存草稿
export const saveDrafts = (result) => {
  return post('/campusweb/activity/saveDrafts', result);
};
//发布活动
export const publishActivity = (result) => {
  return post('/campusweb/activity/addActivity', result);
};
